class A {
  constructor(props) {
    this.x = props.x
    this.y = props.y
  }

}

class B extends A {

}

console.log(new B({x: 1, y: 2})); // B { x: 1, y: 2 }
